package com.youlai.boot.system.converter;

import com.youlai.boot.system.model.entity.SpotTicket;
import com.youlai.boot.system.model.form.SpotTicketForm;
import org.mapstruct.Mapper;

/**
 * 预售票数据对象转换器
 *
 * @author 李文兵
 * @since 2025-06-29 17:29
 */
@Mapper(componentModel = "spring")
public interface SpotTicketConverter {

    SpotTicketForm toForm(SpotTicket entity);

    SpotTicket toEntity(SpotTicketForm formData);
}